import request from '@/utils/api'



export function listNode (params) {
  return request({
    url: '/node/list',
    method: 'get',
    params
  })
}

export function listNodePage (params) {
  return request({
    url: '/node/listPage',
    method: 'get',
    params
  })
}


export function addNode (data) {
  return request({
    url: '/node/add',
    method: 'post',
    data
  })

}

export function deleteNode (data) {
  return request({
    url: '/node/delete',
    method: 'post',
    data
  })

}

export function updateNode (data) {
  return request({
    url: '/node/update',
    method: 'post',
    data
  })
}
